package cn.tedu.boot22.entity;

public class Emp {
    //Integer和int区别
    //表示数据库某个字段没有值 int=0  Integer=null
    //使用int无法表示没有赋值的状态 而Integer可以因为Integer多了个null的值
    private Integer id;
    private String name;
    private String job;
    private Integer age;

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                ", age=" + age +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Emp(Integer id, String name, String job, Integer age) {
        this.id = id;
        this.name = name;
        this.job = job;
        this.age = age;
    }
}
